#pragma once
#ifndef __LCD_H__
#define __LCD_H__


#include<stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <linux/input.h>


#include "jconfig.h"
#include "jerror.h"
#include "jmorecfg.h"
#include "jpeglib.h" 


extern unsigned char xiang[32];
extern unsigned char A[16];
extern unsigned char num[10][16];
extern unsigned char welcome[4][32];

void lcd_init();

void lcd_display_FullScreen(int color);

void lcd_display_point(int x, int y, int color);

void lcd_display_char(int x0, int y0, int color, unsigned char* p, int w, int h);

void display_license_plate(int x0, int y0, int color, char* p, int w, int h);

void display_welcome(int x0,int y0,int color, int w, int h);

void lcd_display_jpeg(const char* pathname, int x0, int y0);

int touch();

void lcd_close();

#endif // __LCD_H__
